<?php 

if (!defined('BASEPATH'))
exit('No direct script access allowed');
	if(!defined('getJobType'))
	{
		 function getJobType()
		{
			$CI = & get_instance();
			$CI->load->model('mod_khmerhr');
			$data['get_data'] = $CI->mod_khmerhr->getDataTable("tbl_jobtype","jobTypeName");
			return $data['get_data'];
		}
	}
	if(!defined('getLocation'))
	{
		 function getLocation()
		{
			$CI = & get_instance();
			$CI->load->model('mod_khmerhr');
			$data['get_data'] = $CI->mod_khmerhr->getDataTable("tbl_location","locationName");
			return $data['get_data'];
		}
	}
	if(!defined('getUserType'))
	{
		 function getUserType()
		{
			$CI = & get_instance();
			$CI->load->model('mod_khmerhr_admin');
			$data['get_data'] = $CI->mod_khmerhr_admin->getUserType();
			return $data['get_data'];
		}
	}
	if(!defined('getJobTime'))
	{
		 function getJobTime()
		{
			$CI = & get_instance();
			$CI->load->model('mod_khmerhr');
			$data['get_data'] = $CI->mod_khmerhr->getDataTable("tbl_job_time","job_time_name");
			return $data['get_data'];
		}
	}
	if(!defined('countCategory'))
	{
		 function countCategory($cateId)
		{
			$CI = & get_instance();
			$CI->load->model('mod_khmerhr');
			$data['get_data'] = $CI->mod_khmerhr->countTable("tbl_post_cate","category_id",$cateId);
			return $data['get_data'];
		}
	}
	
	if(!defined('getAllEmployee'))
	{
		 function getAllEmployee()
		{
			$CI = & get_instance();
			$CI->load->model('mod_khmerhr');
			$data['get_data'] = $CI->mod_khmerhr->getAllEmployee();
			return $data['get_data'];
		}
	}
	
	if(!defined('countLocation'))
	{
		 function countLocation($locationId)
		{
			$CI = & get_instance();
			$CI->load->model('mod_khmerhr');
			$data['get_data'] = $CI->mod_khmerhr->countTable("tbl_post_province","province_id",$locationId);
			return $data['get_data'];
		}
	}
	if(!defined('countRowTable'))
	{
		 function countRowTable($name)
		{
			$CI = & get_instance();
			$CI->load->model('mod_khmerhr_admin');
			$data['get_data'] = $CI->mod_khmerhr_admin->count_table($name);
			return $data['get_data'];
		}
	}

	if(!defined('getLocationName'))
	{
		 function getLocationName($jobId)
		{
			$CI = & get_instance();
			$CI->load->model('mod_khmerhr');
			$data['get_data'] = $CI->mod_khmerhr->getLocationName($jobId);
			return $data['get_data'];
		}
	}
?>